package com.ruoyi.user.utils;

import java.util.Random;

/**
 * @author houyong
 */
public class RandomUtil {
    /**
     * 生成4位随机数
     *
     * @return
     */
    public static int getRandomNumber() {
        return new Random().nextInt(9999) % (9999 - 1000 + 1) + 1000;
    }
}
